(function ($) {
    function SlickAjax() {
        function post(url, data, success, fail) {
            $.ajax({
                type: "POST",
                url: sbz.getUri(url),
                dataType: "json",
                data: JSON.stringify(data),
                contentType: "application/json;charset=UTF-8",
                success: success,
                fail: fail
            });
        }

        function ajax(type, url, dataType, data, contentType, success, fail) {
            $.ajax({
                type: "POST",
                url: sbz.getUri(url),
                dataType: "json",
                data: JSON.stringify(data),
                contentType: "application/json;charset=UTF-8",
                success: success,
                fail: fail
            });
        }

        return { "post": post, "ajax": ajax }
    }

    $.extend(true, window, { Slick: { Data: { SlickAjax: SlickAjax }}});
})(jQuery);
